/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb.common;

import entity.Account;
import entity.Persona;
import javax.ejb.Local;
import javax.security.auth.login.AccountException;

/**
 *
 * @author Carmela
 */
@Local
public interface AccountManagerLocal {

    boolean isRegistrato(Account a);

    void creaAccount(Account a);

    Account ottieniAccount(Account a);

    void modificaPassword(String newPassword, Long idAccount) throws AccountException;

    boolean esiste(Long idAccount);

    Persona cercaPersona(String email);
}
